import { http } from "@/utils/http.js";

// 库存
export const appCodeByDetail = (data) => {
  return http.request({
    method: "GET",
    url: "app/mulin/order/codeByDetail",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 订单列表
export const orderList = (data) => {
  return http.request({
    method: "GET",
    url: "app/mulin/order/list",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 订单核銷
export const orderVerify = (data) => {
  return http.request({
    method: "POST",
    url: "app/mulin/order/verify",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 订单核銷详情
export const orderDetail = (data) => {
  return http.request({
    method: "GET",
    url: "app/mulin/order/detail",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
